#ifndef UTIL_H
#define UTIL_H

#include <ctime>
#include <cstdio>
#include <string>
#include <sstream>

#if defined(_WIN32)
    #define COMMAND "cls"
    #include <windows.h>
    #define CMD sleep(2000)
    #define emailsValidos "emailsValidos.txt"
    #define emailsAdmin "emailsAdmin.txt"
#else
    #define COMMAND "clear"
    #include <unistd.h>
    #define CMD sleep(2)
    #define emailsValidos "emailsValidosLinux"
    #define emailsAdmin "emailsAdminLinux"
#endif

#define wipe() {system(COMMAND);}
#define sleep() {CMD;}

using namespace std;

typedef struct RetornoInfo
{
    bool ok;
    string email;
    string nome;
    string niver;
    string idade;
    string clearance;
    string senha;
}TipoRetornoInfo;
//! @details Metodo que recupera o tempo do sistema.
const std::string currentDateTime();
//! @details Metodo que converte int em string.
const std::string convertString(const int&);
//! @details Metodo que converte double em string.
const std::string convertString(const double&);
#endif
